<?php $pages = ceil( $this->result / $this->limit ); ?>

<div class="boxbar nomtop">
    <div class="pagin">
    	<div class="left"><?php echo $this->translate( 'page_actual' ); ?> <?php echo $this->page; ?> <?php echo $this->translate( 'page_all' ); ?> <?php echo $pages; ?> </div>
    	<div class="right">
    	<?php if( $this->page > 1 ) { $np = $this->page - 1; ?>
	    	<?php while(($np+1)!=$this->page){?>
	    		<a href="<?php echo preg_replace( '/page\/[0-9]/', 'page/' . $np, $this->pathInfo ); ?>"><?php $np?></a>
	    		<?php $np++;?>
	    	<?php }?>
	    <?php }?>
    	<a href="#" class="active"><?php echo $this->page?></a>
    	<?php if( $this->page < $pages ) { $npplus = $this->page + 1; ?>
    		<?php while(($npplus)<=$pages){?>
	    		<a href="<?php echo preg_replace( '/page\/[0-9]/', 'page/' . $npplus, $this->pathInfo ); ?>"><?php $npplus?></a>
	    		<?php $npplus++;?>
	    	<?php }?>
	    <?php }?>
	    <?php if( $this->page < $pages ) { ?>
    		<a href="<?php echo preg_replace( '/page\/[0-9]/', 'page/' . ($this->page+1), $this->pathInfo ); ?>">&raquo;</a>
    	<?php }?>
    	</div>
    </div>
</div>